boot.loader.grub.users.<name>.passwordFile

Specifies the path to a file containing the clear text password for the account. This password will be stored in /boot/grub/grub.cfg, and will be visible to any local user who can read this file.

Type
null or string
Default
null
Example
"/path/to/file"
Declared
<nixpkgs/nixos/modules/system/boot/loader/grub/grub.nix>